package productplan

import (
	"github.com/labstack/echo"
)

type OxyProductPlanData interface {
	GetProductPlanListHandler(c echo.Context) error
	AddProductPlanHandler(c echo.Context) error
	UpdateProductPlanHandler(c echo.Context) error
	DelProductPlanHandler(c echo.Context) error
	DelProductPlanListHandler(c echo.Context) error
	GetProductPlanInfoHandler(c echo.Context) error
	UpdateProductLargeNumber(c echo.Context) error
	UpdateDesignPlanListOrderInfoHandler(c echo.Context) error
}

func New(e string) OxyProductPlanData {
	if e == "new" {
		return NewOXYOrderProductPlanData()
	} else {
		return NewOXYProductPlanData()
	}
}
